home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_361 / brush_4d / brush_4d.docs < prev    next >
Text File  |  1992-05-06  |  18KB  |  389 lines

  1. July 1990                       BRUSH_4D v. 1.0
  2.                                 ---------------
  3.  
  4. Contents of archive:
  5.            Brush_4D Program.
  6.            This doc file.
  7.            Help picture.
  8.  
  9.                   Copyright © 1990 by Bruce Thomson
  10.  
  11.                            S H A R E W A R E
  12.  
  13.     Brush_4D is ShareWare.  No guarantee is made, expressed or implied as
  14. to Brush_4D's suitability for any application.  No responsibility will be
  15. taken by the author for the results of its use or misuse.
  16.  
  17.  
  18.         First things first.  This is Shareware.  It is also not the best
  19.         version of this program available.  For most people this version
  20.         will be more than adequate.  It coverts brushes with a maximum
  21.         of around 190 square pixels and will create objects with a maximum
  22.         of around 1900 faces.  It has all the features of the larger
  23.         version except for this size restriction.  If you like this program
  24.         then please send $US 10 to the address below.  If you want the
  25.         unlimited version send $US 30 to register.  If you think you might
  26.         want the unrestricted version at a later date send $10 now and
  27.         $20 later - I will keep a record.  Paying users will be kept
  28.         informed of updates.
  29.  
  30.  
  31.  
  32. 1.      What Does It Do?
  33.  
  34.     Brush_4D converts IFF brushes (e.g. DPaint pictures) into Sculpt
  35. objects.  The program will convert standard brushes, Extra Halfbrite
  36. brushes and HAM brushes in full colour.  It is very fast.
  37.     In addition to converting your brush into a flat object, pixel for
  38. pixel Brush_4D has some extra features.
  39.  
  40.     - Optimise the brush so that areas of the same colour become one large
  41.       square as opposed to many small ones.
  42.     - Make any colours transparent.
  43.     - Wrap brush around a tube or part of tube.
  44.     - Wrap brush onto a sphere.
  45.     - Wrap brush with some special effects.
  46.     - With HAM images allow optimisation through a HAM colour closeness
  47.        setting.
  48.  
  49. 2.      How Do I Use It?
  50.  
  51.     Brush_4D runs from CLI, and is easy to use.  It takes about 200K as
  52.     well as the screen memory for your picture.
  53.  
  54.     There are two modes of use:
  55.  
  56.     a.
  57.  BRUSH_4D -auto brush_name scene_name
  58.  
  59.     The brush called "brush_name" will be displayed and converted  with
  60.     optimisation and palette colour 0 transparent into a flat Sculpt object
  61.     called "scene_name".
  62.  
  63.     b.
  64.  BRUSH_4D brush_name scene_name
  65.  
  66.     You will be prompted for more input.  In this mode you can choose
  67.     wrapping, transparent colours, different brush sizes etc.
  68.  
  69.  
  70. 3.      How Does It Work?
  71.  
  72.     Brush_4D loads in the brush as a picture and displays it on a custom
  73. screen.  It then brings the Workbench screen forward for input and output.
  74.     Based on your input (or the default settings if you use the "-auto"
  75. option) any colours you have specified to be transparent (and thus not
  76. converted as part of the object) will be blocked out on the picture.  You
  77. will be told what proportion of the brush was made transparent.
  78.     Brush_4D will then proceed to analyse the picture and convert the
  79. pixels into pairs of sculpt faces making up squares with that pixel's
  80. colour.
  81.     If the optimise option has been selected rectangular areas of the
  82. same colour will be converted into one large block as opposed to many
  83. smaller blocks of the same colour.  Depending on the brush, optimisation of
  84. up to around 90% can be achieved, giving a great saving in memory and
  85. faces.
  86.     When the whole brush has been converted the points will be wrapped
  87. around the selected shape if one has been chosen. The data will be written out,
  88. ready to be loaded into Sculpt Animate/4D/3D etc. as an object.
  89.     Alternatively the scene file can be changed into Turbo Silver or other
  90. formats using conversion programs like InterChange.
  91.  
  92.  
  93. 4.      Wraps.
  94.  
  95.     Apart from just converting your brush into a flat, 2D rectangular plane
  96. Brush_4D can wrap your image onto certain 3D shapes.  These are a tube, a
  97. sphere and a variable sinusoidal wave.  For example you can wrap a picture
  98. of a face onto a sphere and get a reasonable 3D head.
  99.     The sphere and sine wave are based on the wrap to tube.  With wrap to
  100. tube you get an upright tube with the X values of the pixels wrapped around
  101. a circle and the Y values making up the height of the tube.
  102.     Spheres are made by adjusting the diameter of the tube at each height
  103. level so that it is squashed in at the top and bottom and stretched out in
  104. the middle.
  105.     Sine waves are made by modifying the diameter of the tube to match a
  106. sine wave with several parameters (see below).
  107.  
  108. 5.      The Inputs.
  109.  
  110.     If you select the "-auto" option when you enter the command in CLI then
  111. you will get this conversion.
  112.  
  113.     Flat.
  114.     Optimisation in X and Y.
  115.     Full brush size.
  116.     No allowance for closeness of colours with HAM images.
  117.     Palette colour 0 (the background colour) transparent.
  118.  
  119.  and the brush will be converted automatically with no further input.
  120.  
  121.     If you have not selected the "-auto" option you will be prompted for
  122. several values at the beginning of the program.
  123.     When the picture is loaded you will be told its width and height, along
  124. with the number of colours or if it is a HAM picture.
  125.  
  126. At the prompt "Input wrap type 0=Flat 1=Tube 2=Sphere 3=Sine" enter the
  127. number corresponding to the wrap type.
  128. These are:
  129.             Flat    - The picture will be converted to a flat, 2D object.
  130.  
  131.             Tube    - The picture will be wrapped around a tube.  You will
  132.                       be prompted for two additional values at this point.
  133.                       "Bend level for tube ..."
  134.                         Enter a number in the range 0 to 1.  This will be
  135.                         the proportion of a circle that is turned through.
  136.                         0 will make a flat object.  1 will wrap completely
  137.                         around a tube.  .5 will wrap to a half tube.
  138.                         See help picture for more enlightenment.
  139.                       "Bend forwards or backwards..."
  140.                         If you are wrapping to part of a tube you should
  141.                         decide whether the picture will be pushed
  142.                         "forwards" or "backwards"
  143.                         See help picture.
  144.  
  145.             Sphere  - You will be prompted for the values as in the Tube
  146.                         option.  Wrap to sphere works by wrapping to a
  147.                         tube and then altering the diameter of the tube
  148.                         at each point to match a sphere.  By doing this
  149.                         the picture will look a little stretched towards
  150.                         the top and bottom of the sphere.
  151.  
  152.             Sine    - You need to enter the values for wrap to tube and
  153.                         then you will be asked for start and end angles
  154.                         for the sine wave.  These values are in degrees.
  155.                         Wrapping to sine works by running a wriggle down
  156.                         the side of the points mapped to a tube so you
  157.                         can get effects like the look of the old style
  158.                         Coke drink bottles.  The start and end angles give
  159.                         the range of values through which your wriggle
  160.                         will run as it travels down the side of the tube.
  161.                         You will then be asked for "radius offset".
  162.                         This will control how pronounced the wriggle is.
  163.                         Values range from 0 upwards.  A value of 1 is
  164.                         equal to the amplitude of the sine wave and higher
  165.                         values will increase the diameter of the tube
  166.                         prior to adding the wave thereby  lessening the
  167.                         effect of the sine wave.  A value of zero will
  168.                         give shapes like an hour glass that converge in
  169.                         the middle.
  170.                         See help picture.
  171.  
  172.     If you have chosen any of the wrap options you will be given the option
  173. to select how the wrapping will be done.  If you select "Ignore
  174. transparent..." as YES then the wrap will start at the top left corner and
  175. proceed to the height and width values you will enter (see below).
  176. If you say NO then the wrap will be based on only non-transparent colours in
  177. the brush.  With this option you can choose a tight wrap or a loose wrap.
  178.  
  179.  
  180.     On "Optimise x pixels..." and "Optimise y pixels..." enter 0 or 1
  181. corresponding to your choice.  If you select optimised for both then
  182. rectangles of one colour will be found and converted to one large block.
  183. If you are going to wrap to a tube then it might be best to not optimise x
  184. and optimise y so that you will have a good number of points for the tube
  185. to turn through, but as the y values will be running straight down
  186. optimisation will not affect the look, and save memory.
  187. With wrapping to sine or sphere you should probably turn off optimising for
  188. both so you get smooth curves.
  189.  
  190.     The brush width and height are now printed along with the number of
  191. colours.  You can enter new width and height values here.
  192. On "Wid" and "Hei" prompts enter a value up to or including the maximum
  193. shown or a value of zero which means the maximum (it saves you a little
  194. typing.)  If your values are not equal to the maximum then a border will be
  195. drawn around the area you have selected so you can see what you have taken.
  196.  
  197.     You are now prompted for any colours that you would like to make
  198. transparent.  If you have a HAM screen you have only the option of making
  199. palette colour 0 transparent.  This is usually the background colour.
  200. If the picture is a non-HAM picture then you will be asked for a list of
  201. colours you want to be made transparent.  These numbers correspond to the
  202. palette colour in the picture.  Enter "99" to show you have reached the end
  203. of the list.  If you don't want any transparent colours then enter "99" as
  204. your first number.
  205.  
  206. The picture will then be scanned and pixels that are to be transparent will
  207. be coloured in on non-HAM displays.  On HAM displays the background colour
  208. will be made transparent but not shown on screen.  You will be shown what
  209. proportion of the pixels in the brush were made transparent.
  210.  
  211. With HAM pictures you will be able to enter a value that allows colours
  212. that are close to each other to be treated as the same colour.  This gives
  213. extra optimisation as you get more large blocks of one colour rather than
  214. say two different blocks of almost the same colour.
  215. At the prompt "Enter HAM Threshhold..." enter a value of 0 to 15.  Each HAM
  216. pixel has a red, green and blue component and this is the level that they
  217. are allowed to vary from the surrounding pixels before they are considered
  218. to be a different colour.
  219. A value of 0 means any difference at all between pixel colours will be
  220. detected.
  221. A value of 5 will allow for example any colours between dull orange and
  222. bright orange to be treated as one colour.
  223. A value of 15 will make the program think that all the colours are the
  224. same.
  225. Higher values result in less detailed colouring of the object but fewer
  226. faces.
  227.  
  228.  
  229. 6.      While it Runs.
  230.  
  231.     Once you have entered these values sit back and depending on the size
  232. of the brush around 5 to 20 seconds later the conversion will be done.
  233.     As the picture is processed, in non-HAM screens the points converted
  234. will be blocked out as it goes so you can watch the progress.
  235.     In HAM screens because writing to the screen would change the colours
  236. and mess it up you can get an idea of where it is up to by choosing a new
  237. height value of a couple of pixels less than the maximum and you will see a
  238. line run across the bottom.
  239.  
  240.     When all the processing is done you will be shown the exact number of
  241. vertices, edges and faces used in the object and the file size. You will
  242. also be told the level of compression of the non-transparent colours if
  243. you had any optimisation on.  When the program finishes it flashes the
  244. screen to alert you.
  245.  
  246.  
  247. 7.      Tips.
  248.  
  249.     Don't click the hidden forward/back gadgets on the custom screen as
  250. they leave an outline that will turn up in your object.
  251.  
  252.     Don't RUN this program unless you are using the "-auto" option as it
  253. needs interactive CLI.
  254.     Use the "-auto" mode in scripts to convert a whole lot over at once.
  255.  
  256.     Fewer colours will result in higher compression levels but you should
  257. balance the memory saving against the look of the object.
  258.  
  259.     If you want smaller objects then reduce the brush before conversion or
  260. cut out some colours.
  261.  
  262.     Name your objects when they are loaded in as when you have transparent
  263. colours the various parts will not be connected so you will want an easy
  264. way of selecting the whole object.
  265.  
  266.     When wrapping to a sphere you can get quite a bit of distortion at the
  267. top and bottom.  This can be controlled by using the "Ignore Transparent
  268. for Bend" setting on NO.  On your paint program cut your brush, clear the
  269. screen, and stamp the brush in the middle of the screen.  Then cut the
  270. brush with a large border which can be made transparent.  The transparent
  271. colours will not show up as part of your object but will be included in
  272. calculation for how much to bend the tube.
  273. With this you will not get a sphere but more of a sphere with the top and
  274. bottom cut off.  This can be a good effect.
  275. The same works for sine wave but there is not often the same level of
  276. distortion with this.
  277.  
  278.     Use the HAM threshhold setting around 2 or 3 for good looking results
  279. with increased optimisation.
  280.  
  281.     If you want more than the 64 colours in EHB and don't like the fringing
  282. associated with HAM colours (which will be faithfully converted over) then
  283. you can go to a little trouble and create your objects in parts.  These can
  284. be quite easy to assemble.
  285. Draw your brush using all available colours.  Use the coordinates and cut
  286. it out and save it.
  287. Change the palette and by using Stencil (in Dpaint) select the background
  288. colour, invert the stencil then return to painting.  Use one colour to
  289. paint over the pixels in the old brush.
  290. Then change the stencil so that colour is protected and the background
  291. colour free.  Draw around the old picture with your new colours and when
  292. you have finished go back to stencil and protect everything but the colour
  293. you used to write over the first pictures pixels.  Now rub over them with
  294. the background colour.
  295. Now cut the new brush with exactly the same size and start point and save.
  296. Convert both into objects and layer one over the other (they should start
  297. that way when you load them in as scenes).
  298.  
  299.     As well as just converting everyday brushes into objects you can use
  300. Brush_4D as a simple object creator.  One use I find for it is as a
  301. replacement for the checkered floor.  Make your own checkered floor with
  302. something like a pattern fill and then convert it.  You now have control
  303. over the size of your ground and can have more than two colours and don't
  304. have to put it at level 0.  It can also have a texture.
  305.  
  306.     For stripey tubes make a row of colours with something like the shaded
  307. fill and wrap it to a tube.
  308.  
  309.     Convert your favourite (colour) fonts over.  Make them 3D by wrapping
  310. them around part of a tube, both forwards and backwards bent and put
  311. together - no longer flat and boring.
  312.  
  313.     Do nice keyframe animations with pictures fading into one another, sine
  314. saves squirming as you alter the start and end angles etc.  - just make
  315. sure you don't optimise and have no transparents and have exactly the same
  316. size in your start and end brushes.
  317.  
  318. 8.      Errors.
  319.  
  320.     You will be told throughout if anything goes wrong like not being able
  321. to open the screen (lack of chip memory) etc.
  322.     You might get the "Exceeded maximum vertices" or "Exceeded maximum
  323. faces" message.  If this happens you should send off the cash for the
  324. version without limits.  Alternatively reduce your image (but lose detail).
  325.     If you call the programs but it returns to CLI immediately then you 
  326. probably don't have the "mathtrans.library" in your  LIBS: directory.
  327.  
  328. 9.      The Competition.
  329.     Because of my geographical isolation I am quite uninformed.
  330.     I know practically nothing about competing products.  I did read a
  331. review of DigiWorks 3D ($US 130/160) - I see it as a complementary product
  332. as it does only flat conversions (extrusions don't really count) and
  333. doesn't handle colour at all.  It is nice though in finding edges etc. for
  334. you.  With my program you will get jaggies on diagonal edges, with
  335. DigiWorks you would get one diagonal line.
  336.  
  337.  
  338. 10.      The Address!
  339.  
  340. I a poor student, and will need to start saving for 'Imagine'.  Future
  341. upgrades depend on your generosity.
  342.  
  343. Send your money to:
  344.                     Bruce Thomson
  345.                     PO Box 33116
  346.                     Takapuna
  347.                     Auckland
  348.                     NEW ZEALAND
  349.  
  350. Make that $US cash or cheques drawn on NZ banks or money orders etc.
  351. If you're in a kindly mood send all you've got, copies of any other
  352. shareware/PD ray tracing utilities, comments, suggestions etc.
  353. $NZ acceptable also.  Multiply amounts by 1.8.
  354.  
  355. 11.     Other Important Stuff.
  356.  
  357. This program is to be distributed with these docs intact and unaltered.  The
  358. help picture is to accompany it.
  359.  
  360. Distribution of restricted version. (ie this package)
  361.  
  362.              - This restricted version is freely uploadable to BBS's etc.
  363.  
  364.              - Fred Fish can include it in his library.
  365.  
  366.              - Other PD/Shareware libraries can distribute it if they are
  367.                not price gougers, ie they charge no more than 150%
  368.                of Fred Fish's charges.
  369.  
  370.              - Free User Group disk magazines, etc. may distribute it.
  371.  
  372.              - Ask me if you want to distribute it packaged in any form
  373.                that is not covered above, that you will be charging any money
  374.                for - e.g. a disk that accompanies a magazine
  375.  
  376.     The unrestricted version is for your private use only if you decide to
  377. buy it.  It is not to be copied.
  378.  
  379.  
  380. 12.     Future Versions.
  381.  
  382.     There may be future versions based on the financial response to this
  383. release.  I am considering fractal landscapes, math contour surfaces etc.
  384. mapped onto flat objects using the brush colours.
  385.     Suggestions from (even non-paying) users are welcome.
  386.  
  387.  
  388. ______________________________________________________________________________
  389.